package com.xunwulian.base.util;

/**
 * 日志工具类
 */
public class MyLogUtil {

    // 标签
    private String tag;

    public MyLogUtil() {
        tag = MyLogUtil.class.getSimpleName();
    }

    public <T> MyLogUtil(Class<T> c) {
        tag = c.getSimpleName();
    }

    /**
     * 打印日志
     *
     * @param content 要打印的内容
     * @param <T>
     */
    public <T> void log(T content) {
        System.out.println(tag + " -> " + content);
    }
}
